package com.ruoyi.shop.emporium.trace.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mall.common.mapper.DtsAccountTraceMapper;
import com.ruoyi.mall.common.domain.DtsAccountTrace;
import com.ruoyi.shop.emporium.trace.service.IDtsAccountTraceService;

/**
 * 提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-10
 */
@Service
public class DtsAccountTraceServiceImpl implements IDtsAccountTraceService 
{
    @Autowired
    private DtsAccountTraceMapper dtsAccountTraceMapper;

    /**
     * 查询提现记录
     * 
     * @param id 提现记录主键
     * @return 提现记录
     */
    @Override
    public DtsAccountTrace selectDtsAccountTraceById(Long id)
    {
        return dtsAccountTraceMapper.selectDtsAccountTraceById(id);
    }

    /**
     * 查询提现记录列表
     * 
     * @param dtsAccountTrace 提现记录
     * @return 提现记录
     */
    @Override
    public List<DtsAccountTrace> selectDtsAccountTraceList(DtsAccountTrace dtsAccountTrace)
    {
        return dtsAccountTraceMapper.selectDtsAccountTraceList(dtsAccountTrace);
    }

    /**
     * 新增提现记录
     * 
     * @param dtsAccountTrace 提现记录
     * @return 结果
     */
    @Override
    public int insertDtsAccountTrace(DtsAccountTrace dtsAccountTrace)
    {
        return dtsAccountTraceMapper.insertDtsAccountTrace(dtsAccountTrace);
    }

    /**
     * 修改提现记录
     * 
     * @param dtsAccountTrace 提现记录
     * @return 结果
     */
    @Override
    public int updateDtsAccountTrace(DtsAccountTrace dtsAccountTrace)
    {
        dtsAccountTrace.setUpdateTime(DateUtils.getNowDate());
        return dtsAccountTraceMapper.updateDtsAccountTrace(dtsAccountTrace);
    }

    /**
     * 批量删除提现记录
     * 
     * @param ids 需要删除的提现记录主键
     * @return 结果
     */
    @Override
    public int deleteDtsAccountTraceByIds(Long[] ids)
    {
        return dtsAccountTraceMapper.deleteDtsAccountTraceByIds(ids);
    }

    /**
     * 删除提现记录信息
     * 
     * @param id 提现记录主键
     * @return 结果
     */
    @Override
    public int deleteDtsAccountTraceById(Long id)
    {
        return dtsAccountTraceMapper.deleteDtsAccountTraceById(id);
    }
}
